<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $table='user';
    protected $guarded=[];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     * 评论
     */
    public function comment(){
        return $this->hasMany('App\Model\Comment');
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     * 用户
     */
    public function orders(){
        return $this->hasMany('App\Model\Orders');
    }
}
